<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>


    <script>

        // get请求如何携带数据
        //    在路径后面拼接问号  1.php?user=yy&pwd=123&tel=1888888


        const xhr = new XMLHttpRequest() ;
        xhr.open('get' , '../php/03get.php?aa=小花&bb=666' , true) ;
        xhr.send() ;
        xhr.onreadystatechange = function() {
            if(xhr.readyState === 4 && xhr.status === 200) {
                let data = xhr.responseText ;
                console.log(data);
            }
        }





    </script>
    
</body>
</html>